package entity;

import javafx.beans.property.SimpleIntegerProperty;
import javafx.beans.property.SimpleStringProperty;
import lombok.Data;

/**
 * @ClassName UserOrder
 * @Description TODO
 * @Author lzq
 * @Date 2021/6/19 19:00
 */

public class UserOrder {
     private final SimpleIntegerProperty order_id;
     private final SimpleStringProperty name;
     private final SimpleIntegerProperty quantity;
     private final SimpleStringProperty status;
     private final SimpleStringProperty order_date;

    public UserOrder(Integer order_id, String name, Integer quantity, String status, String order_date) {
        this.order_id =new SimpleIntegerProperty(order_id);
        this.name = new SimpleStringProperty(name);
        this.quantity = new SimpleIntegerProperty(quantity);
        this.status = new SimpleStringProperty(status);
        this.order_date = new SimpleStringProperty(order_date);
    }


    public int getOrder_id() {
        return order_id.get();
    }

    public SimpleIntegerProperty order_idProperty() {
        return order_id;
    }

    public String getName() {
        return name.get();
    }

    public SimpleStringProperty nameProperty() {
        return name;
    }

    public int getQuantity() {
        return quantity.get();
    }

    public SimpleIntegerProperty quantityProperty() {
        return quantity;
    }

    public String getStatus() {
        return status.get();
    }

    public SimpleStringProperty statusProperty() {
        return status;
    }

    public String getOrder_date() {
        return order_date.get();
    }

    public SimpleStringProperty order_dateProperty() {
        return order_date;
    }


    public void setName(String name) {
        this.name.set(name);
    }

    public void setQuantity(int quantity) {
        this.quantity.set(quantity);
    }

    public void setStatus(String status) {
        this.status.set(status);
    }

    public void setOrder_date(String order_date) {
        this.order_date.set(order_date);
    }
}
